(function (){
	Ext.define('AppView.base.BaseForm',{
		extend:'Ext.form.Panel',
		alias:'widget.baseform',
	    bodyPadding: 5,
	    width: 350,
	
	    // The form will submit an AJAX request to this URL when submitted
	    url: 'save-form.php',
	
	    // Fields will be arranged vertically, stretched to full width
	    layout: 'anchor',
	    
	    parentWin:null,
	    
	    defaults: {
	        anchor: '100%'
	    },
	
	    // The fields
	    defaultType: 'textfield',
	    items: [{
	        fieldLabel: 'First Name',
	        name: 'first',
	        allowBlank: false
	    },{
	        fieldLabel: 'Last Name',
	        name: 'last',
	        allowBlank: false
	    }],
	
	    initComponent:function(){
	    	this.callParent(arguments);
	    }
	})
})()